<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('read_deepens', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('company_id')->default(0)->index();
            $table->unsignedBigInteger('project_id')->default(0)->index();
            $table->unsignedBigInteger('admin_id')->default(0)->index();
            $table->string('floor')->nullable()->comment('楼层');
            $table->string('part')->nullable()->comment('部位');
            $table->string('number')->nullable()->comment('图纸编号');
            $table->string('content')->nullable()->comment('深化内容');
            $table->string('is_make')->nullable()->comment('是否做大样');
            $table->string('draftsman')->nullable()->comment('绘图人员');
            $table->string('plan_date')->nullable()->comment('计划完成');
            $table->string('reviewer')->nullable()->comment('审核人员');
            $table->string('remarks')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('read_deepens');
    }
};
